﻿<?xml version="1.0" encoding="UTF-8" ?>
<sqlMap namespace="Database" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  
  <alias>
    <typeAlias alias="Database" type="Lyh.Dbdg.Model.Database"/>
  </alias>
  
  <resultMaps>
    <resultMap id="DatabaseResult" class="Database">
      <result property="Name" column="Name"/>
    </resultMap>
  </resultMaps>
  
  <cacheModels>
    <cacheModel id="DatabaseCache" implementation="LRU">
      <flushInterval hours="24"/>
      <property name="CacheSize" value="1000"/>
    </cacheModel>
  </cacheModels>
  
  <statements>
    <select id="Get" resultMap="DatabaseResult" cacheModel="DatabaseCache">
      SELECT DB_NAME() Name
    </select>
  </statements>
  
</sqlMap>